<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>FDWindow Test</title>
<!-- css -->
<link id="fd_theme" href="../../styles/theme/aristo/theme.css" rel="stylesheet" type="text/css" />
<link href="../../styles/primeui-1.1-min.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body{font-size: 12px;}
</style>
<!-- lib -->
<script type="text/javascript" src="../../src/FDLib/FDLib.js"></script>
<script type="text/javascript" src="../../src/JsMap.js"></script>
<!-- app js -->
<script type="text/javascript" src="../theme.js"></script>
</head>
<body>
<button onclick="confirm()">confirm</button>
<button onclick="confirm2()">confirm2</button>

<script type="text/javascript">
FDLib.setDir('../../src/').openDebug();

FDLib.loadJs('FDWindow');

function confirm() {
	FDWindow.confirm('确定关闭吗?',function(r){
		if(r){
			alert('确定')
		}else{
			alert('取消')
		}
	});
}
function confirm2() {
	FDWindow.confirm('确定关闭吗?',function(r){
		if(r){
			alert('确定2')
		}
	},{title:'来自网页的提醒',yesText:'是',noText:'否'});
}
</script>
</body>
</html>